const mongoose = require('mongoose');


const distributionSchema = new mongoose.Schema({
    //配送
    name: String, //配送人员姓名
    phone: String, //配送人员电话
    address: String, //配送人员住址
    date: String, //配送人员出生年月日
    busy:Boolean,
    storeId:{
        type: mongoose.Schema.Types.ObjectId,
        ref: "shop-stores"
    }, //店铺 id
});

mongoose.model('shop-distribution', distributionSchema, "shop-distribution");